projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a072b
)
(ns_draw_window_cursor): When hbar cursor is on over-sized glyph, draw
author
Chong Yidong
<cyd@stupidchicken.com>
Mon, 27 Oct 2008 22:30:38 +0000
(22:30 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Mon, 27 Oct 2008 22:30:38 +0000
(22:30 +0000)
it with the default glyph width.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 5cd64f1d4a35f843ad7e4f4f04cc44e098550138..7b9cebac8755a266b7f0988d1d30ba1e45381a7f 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-2341,6
+2341,7
@@
ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
case HBAR_CURSOR:
s = r;
s.origin.y += lrint (0.75 * s.size.height);
+ s.size.width = min (FRAME_COLUMN_WIDTH (f), s.size.width);
s.size.height = lrint (s.size.height * 0.25);
NSRectFill (s);
break;